package pe.gob.sedapal.scmultimedia.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.mapping.StatementType;

import pe.gob.sedapal.scmultimedia.domain.Distrito;

public interface DistritoDAO {

	@Select(value="{call PKG_SCM.LISTAR_DIST_POR_PROV(" +
			"#{codProv, mode=IN}," +
			"#{result, mode=OUT, jdbcType=CURSOR, javaType=ResultSet, resultMap=resultDistrito})}")
	@Options(statementType=StatementType.CALLABLE)
	List<Distrito> listarDistritosPorProvincia(Map<String, Object> parameter);
}
